#include <QCoreApplication>
#include <iostream>
using namespace std;
int main()
{
    int x,y;

    cout<<"vvedite x:\n";
    cin>>x;
    cout<<"vvedite y:\n";
    cin>>y;
    if (x<0&&y>0)
        cout<<"tochka legit v 2  koordinatnoi ploskosti"<<endl;
    else cout<<"tochka legit v 3 joordinatnoi ploskosti"<<endl;

    return (0);
}
